<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		{include file='header.tpl' JS=$smarty.const.BAOGG_JS CSS=$smarty.const.BAOGG_CSS}
		
		<script type="text/javascript">
			var LANG = {$LANG};

			Ext.onReady(function() {
				Ext.QuickTips.init();

				var win_form = Ext.create('Ext.window.Window', {$form});
				var form = Ext.getCmp("ext_form");

				var grid = Ext.create('Ext.panel.Panel', {

					id : 'ext_grid',

					region : 'center',

					dockedItems : [{
						xtype : 'toolbar',
						dock : 'top',
						items : ["-", {
							iconCls : 'search-icon',
							text : '查询',
							handler : function(btn, ev) {
								Ext.getCmp("win_form").show().center();
							}
						}]
					}],
					items : [{

						xtype : "component",

						id : 'report_content',
						name:'report_content',
						closable : true,

						border : 0,						

	                    layout: 'fit',
						
						style: {
							width: '100%',
							height:'100%'
						},
						autoEl : {

							tag : "iframe",
							layout:'fit',
							name:'report_content',

							src : "{$target_url}",

							frameBorder : "0",

							border : 'none'

						}

					}]
				});

				Ext.create('Ext.container.Viewport', {
					layout : 'border',
					renderTo : Ext.getBody(),
					items : grid
				});
				//	win_form.hide();
				win_form.show().center();
			})
		</script>
	</head>
	<body>
		<form id='myForm' name='myForm' method="post" action= "{$target_url}" target="report_content">
			
		</form>
		<div id="grid"></div>
	</body>
</html>
